package com.ligux.flzyup;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;

import com.ligux.handler.ButtonHandler;
import com.ligux.util.Common;

public class MainActivity extends Activity {
	/** Called when the activity is first created. */
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		Button btnReboot = (Button)findViewById(R.id.btnReboot);
		Button btnRecovery = (Button)findViewById(R.id.btnRecovery);
		Button btnBootloader = (Button)findViewById(R.id.btnBootloader);
		Button btnShutdown = (Button)findViewById(R.id.btnShutdown);

		btnReboot.setOnClickListener(new ButtonHandler());
		btnRecovery.setOnClickListener(new ButtonHandler());
		btnBootloader.setOnClickListener(new ButtonHandler());
		btnShutdown.setOnClickListener(new ButtonHandler());
		
		/* Initialize the reboot binary */
		Common.initialization(getApplicationContext());
	}
	
//	public boolean onCreateOptionsManu(Menu menu) {
//		
//		return true;
//	}
}